//
//  UIButton+Extension.swift
//  WeiBo
//
//  Created by AaronWei on 2017/6/5.
//  Copyright © 2017年 AaronWei. All rights reserved.
//

import UIKit

extension UIButton {
    
    convenience init(title: String?, normalTextColor: UIColor?, highlightedTextColor: UIColor?, fontSize: CGFloat?) {
        
        self.init()
        
        setTitle(title, for: .normal)
        
        titleLabel?.font = UIFont.systemFont(ofSize: fontSize ?? 17)
        
        setTitleColor(normalTextColor, for: .normal)
        
        setTitleColor(highlightedTextColor, for: .highlighted)
                
    }
    
}
